<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <style>
        body{text-align: center}
        #css5{margin:0 auto;}
    </style>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="jquery-latest.js"></script>
</head>
<body bgcolor="#cc9966">
<div id="css5">
    <h1>用户登录</h1>
    <form role="from" action="/loginAction" method="post">
        账号：<input type="text" id="name"name="name"><br>
        <br>
        密码：<input type="password" id="password" name="password"><br>
        <br>
        <input type="submit" id="login" value="登录">
        <input type="button" id="button" value="注册">

        <script>
            $('#button').click(function () {
                location.href='/index';
            });
        </script>
    </form>
</div>
</body>
</html>